package wxshop.api.admin.model;

import java.io.Serializable;
import java.util.List;

/**
 * Created by 121874694@qq.com on 2018/3/3.
 */
public class Roles implements Serializable {
	private int id;
	private String role;
	private List<Menu> childrenMenu;
	public Roles () {
	}
	
	public Roles (int id, String role) {
		this.id = id;
		this.role = role;
	}
	
	public Roles (int id, String role, List<Menu> childrenMenu) {
		this.id = id;
		this.role = role;
		this.childrenMenu = childrenMenu;
	}
	
	public int getId () {
		return id;
	}
	
	public void setId (int id) {
		this.id = id;
	}
	
	public String getRole () {
		return role;
	}
	
	public void setRole (String role) {
		this.role = role;
	}
	
	public List<Menu> getChildrenMenu () {
		return childrenMenu;
	}
	
	public void setChildrenMenu (List<Menu> childrenMenu) {
		this.childrenMenu = childrenMenu;
	}
	
	@Override
	public String toString () {
		return "Roles{" +
				"id=" + id +
				", role='" + role + '\'' +
				", childrenMenu=" + childrenMenu +
				'}';
	}
}
